﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Users.Master" AutoEventWireup="true" CodeBehind="OdberiPrijatel.aspx.cs" Inherits="sdamarketing.SocialNet.OdberiPrijatel" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="title1PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="text1PlaceHolder" runat="server">
 <table style="width:100%;">
    <tr>
        <td style="width: 171px; text-align: right; height: 15px;">
        </td>
        <td style="width: 210px; height: 15px;">
        </td>
        <td style="text-align: left; " rowspan="6">
                            <asp:Image ID="Image2" runat="server" Height="170px" 
                                ImageUrl="~/sliki/User.jpg" Width="170px" 
                ImageAlign="Left" meta:resourcekey="Image2Resource1" />
            </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right; height: 26px;">
            <asp:Label ID="lblName" runat="server" Text="Име" 
                meta:resourcekey="lblNameResource1"></asp:Label>
        </td>
        <td style="width: 210px; height: 26px;">
            <asp:TextBox ID="TextBoxName" runat="server" Width="168px" 
                meta:resourcekey="TextBoxNameResource1"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right; height: 27px;">
            <asp:Label ID="lblUsername" runat="server" Text="Корисничко име" 
                meta:resourcekey="lblUsernameResource1"></asp:Label>
        </td>
        <td style="width: 210px; height: 27px;">
            <asp:TextBox ID="TextBoxUsername" runat="server" Width="168px" 
                meta:resourcekey="TextBoxUsernameResource1"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right;">
            <asp:Label ID="lblLastName" runat="server" Text="Презиме" 
                meta:resourcekey="lblLastNameResource1"></asp:Label>
        </td>
        <td style="width: 210px">
            <asp:TextBox ID="TextBoxLastName" runat="server" Width="168px" 
                meta:resourcekey="TextBoxLastNameResource1"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="width: 171px; text-align: right;">
            &nbsp;</td>
        <td style="width: 210px">
            <asp:Button ID="SearchButton" runat="server" onclick="SearchButton_Click" 
                Text="Пребарај" Width="70px" meta:resourcekey="SearchButtonResource1" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Label ID="lblSelectOne" runat="server" 
                meta:resourcekey="lblSelectOneResource1"></asp:Label>
        </td>
    </tr>
    <tr>
        <td colspan="3">
        <hr />
            <asp:Panel ID="PanelUsersDetails" runat="server" 
                meta:resourcekey="PanelUsersDetailsResource1">
                <table style="width:100%;">
                </table>
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                Text="Покажи пријатели" meta:resourcekey="Button1Resource1" />
            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                Text="Затвори пријатели" meta:resourcekey="Button2Resource1" />
            <br />
            <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                <asp:Label ID="Label1" runat="server" Text="Листа на пријатели" 
                    meta:resourcekey="Label1Resource1"></asp:Label>
                <br />
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                              AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                              ForeColor="#333333" GridLines="None" 
                              onrowdeleting="GridView1_RowDeleting" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" Width="200px" 
                    meta:resourcekey="GridView1Resource1">
                    <RowStyle BackColor="#EFF3FB" />
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="UsernamePrijatel" HeaderText="Пријател" 
                            meta:resourcekey="BoundFieldResource1" SortExpression="UsernamePrijatel" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/sliki/Trash.png" 
                            DeleteText="Бриши" meta:resourcekey="CommandFieldResource1" 
                            ShowDeleteButton="True" />
                        <asp:CommandField meta:resourcekey="CommandFieldResource2" />
                        <asp:CommandField ButtonType="Image" HeaderImageUrl="~/sliki/prijatel.png" 
                            HeaderText="Види" meta:resourcekey="CommandFieldResource3" 
                            SelectImageUrl="~/sliki/10s.png" SelectText="Види" ShowSelectButton="True" />
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
                <br /> <br />
            </asp:Panel>
        </td>
    </tr>
</table>
    <asp:GridView ID="UsersGridView" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BorderColor="#0066FF" BorderStyle="Solid" 
        BorderWidth="1px" CellPadding="4" ForeColor="#333333" GridLines="None" 
        onpageindexchanging="UsersGridView_PageIndexChanging"
        onselectedindexchanged="UsersGridView_SelectedIndexChanged" PageSize="15" 
        meta:resourcekey="UsersGridViewResource1">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:BoundField DataField="firstName" HeaderText="Име" 
                meta:resourcekey="BoundFieldResource2">
            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px" />
            </asp:BoundField>
            <asp:BoundField DataField="lastName" HeaderText="Презиме" 
                meta:resourcekey="BoundFieldResource3">
            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px" />
            </asp:BoundField>
            <asp:BoundField DataField="username" HeaderText="User" 
                meta:resourcekey="BoundFieldResource4">
            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px" />
            </asp:BoundField>
            <asp:CommandField ButtonType="Image" SelectImageUrl="~/sliki/friend_add.png" 
                ShowSelectButton="True" meta:resourcekey="CommandFieldResource4" />
        </Columns>
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#BDC7D2" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainTitle2PlaceHolder" runat="server">
    </asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="title2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="text2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="mainTitle1PlaceHolder">
                <h2 class="title">
                    <asp:Label ID="Label2" runat="server" Text="Tвои пријатели" 
                        meta:resourcekey="Label2Resource1"></asp:Label>
                </h2>
                
</asp:Content>

